export class ReadDataTaskExecutedResult {
    taskId: string
    partId: string
    deviceId: string
    deviceName: string
    taskName: string
    dataType: string
    address: string
    value: string
    constructor() {
      this.taskId = ''
      this.partId = ''
      this.deviceId = ''
      this.deviceName = ''
      this.taskName = ''
      this.dataType = ''
      this.address = ''
      this.value = ''
    }
  }
  
  export enum BrowserGroups {
    DeviceMaintenance = 'DeviceMaintenance'
  }
  export interface ProjectInfo {
    creationTime: string;
    creatorId: string;
    id: string;
    lastModificationTime: string;
    lastModifierId: string;
    projectName: string;
    site: number;
}
  
export interface PartsInfo {
    creationTime: string;
    creatorId: string;
    currentValueTaskName: string;
    deviceId: string;
    id: string;
    lastModificationTime: string;
    lastModifierId: string;
    partName: string;
    partOwnerId: string;
    partStatus: string;
    projectId: string;
    stopValueTaskName: string;
    warningTaskName: string;
    warningValueTaskName: string;
}

interface CurrentSpeed {
    label: string;
    value: string;
    unit: string
}

export interface DistributionDeviceStatus {
    status: string;
    title: string;
    partId: string;
    currentSpeed?: CurrentSpeed;
    currentLifespan?: CurrentSpeed;
    warningValue?: CurrentSpeed;
    stopValue?: CurrentSpeed;
    currentPressure?:CurrentSpeed;
    currentElectricCurrent?:CurrentSpeed;
}